const Router = require('koa-router')
const config = require('../conf/config.js')
import reply from '../wechat/reply'
import wechatMiddle from '../wechat-lib/middleware'
exports.router = app =>{
    const router = new Router()
    router.all('/wxapi',wechatMiddle(config,reply))
    app
        .use(router.routes())
        .use(router.allowedMethods())
}
